<?php 	session_start(); 	if(!isset($_SESSION['username']))		header("Location:login.php");?><html>
	<head>	<script type="text/javascript" src="jquery.js"></script>	<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>	<link type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />		<link type="text/css" href="css/date.css" rel="stylesheet" />		<script type="text/javascript">		function recoverPassword(){			$("#content").html("<img src='gifs/indicator.gif' /> Sending password...");			$("#content").load('controllers/RecoverPasswordController.php',function(data) {			});		}				function logout(){			$("#content").html("<img src='gifs/indicator.gif' /> Logging out...");			$("#content").load('controllers/LogOutController.php',function(data) {			});		}	</script>
	</head>
	<body>		<h2>Welcome <?php echo $_SESSION['username']?></h2>		<div id="content">		<?php		if(($_SESSION['username'])!="admin"){?>			<a href="requestpaymentupdate.php">Request Update of Payment</a><br />			<a href="viewaccount.php">Edit Account Information</a><br />		<?php		}		?>		<?php			if($_SESSION['username']=="admin"){			?>				<a href="#" onclick="recoverPassword();" >Recover Password</a>				<br />				<?php				$user="root";				$password="";				$database="whitehouse";				mysql_connect(localhost,$user,$password);				mysql_select_db($database) or die( "Unable to select database");				$query = "SELECT * from unit";				$result = mysql_query($query)				or die(mysql_error());  				while($row = mysql_fetch_array($result)){				?>					<a href="viewaccount.php?unit=<?php echo $row['unit_name']?>"><?php echo $row['unit_name']?></a><br />				<?php				}				?>											<?php						}		?>		<a href="#" onclick="logout();" >Log Out</a>		</div>
	</body>
</html>